package com.example.singletones.userSettingsData;

import android.content.Context;
import android.telephony.TelephonyManager;

import com.example.singletones.contextObj;

public class UserConfData implements java.io.Serializable {
	public UserConfData() {
		setUserName();
		setPassword();
	}

	private static final long serialVersionUID = 1L;
	private static String Password;
	private static String Electricity;
	private static int LastCallID;

	public static int getLastCallID() {
		return LastCallID;
	}

	public static void setLastCallID(int lastCallID) {
		LastCallID = lastCallID;
	}

	public static String getElectricity() {
		return Electricity;
	}

	public static void setElectricity(String electricity) {
		Electricity = electricity;
	}

	public String getPassword() {
		return Password;
	}

	public void setPassword() {

		TelephonyManager telephonyManager = (TelephonyManager) contextObj
				.getInstance().getmContext()
				.getSystemService(Context.TELEPHONY_SERVICE);
		Password = telephonyManager.getDeviceId();

	}

	private static String _userName;

	public String getUserName() {
		return _userName;
	}

	public void setUserName() {
		TelephonyManager telephonyManager = (TelephonyManager) contextObj
				.getInstance().getmContext()
				.getSystemService(Context.TELEPHONY_SERVICE);

		_userName = telephonyManager.getSimSerialNumber();
	}

}